// Copyright DustedPixels.com 2008. All rights reserved.

package com.dustedpixels.asm.test;

import com.dustedpixels.common.base.Repeatable;

/**
 * @author micapolos@gmail.com (Michal Pociecha-Los)
 */
public final class SuperOptimisedRepeatable implements Repeatable {
  private int cnt = 0;
  
  public void repeat(int times) {
    int cnt = this.cnt;
    while (times-- > 0) {
      cnt = cnt * 2 + 1;
    }
    this.cnt = cnt;
  }
}
